package c.a.a.z.c;

import android.graphics.Path;
import android.graphics.PointF;
import c.a.a.e0.g;
import c.a.a.f;
import c.a.a.f0.a;

/* compiled from: PathKeyframe */
public class h extends a<PointF> {
    public Path o;
    public final a<PointF> p;

    public h(f fVar, a<PointF> aVar) {
        super(fVar, aVar.b, aVar.c, aVar.d, aVar.e, aVar.f);
        this.p = aVar;
        e();
    }

    public void e() {
        Object obj;
        Object obj2 = this.c;
        if (obj2 != null) {
            obj = this.b;
            if (obj != null && ((PointF) obj).equals(((PointF) obj2).x, ((PointF) obj2).y)) {
                obj2 = 1;
                obj = this.c;
                if (obj != null && r0 == null) {
                    PointF pointF = (PointF) this.b;
                    PointF pointF2 = (PointF) obj;
                    a aVar = this.p;
                    PointF pointF3 = aVar.m;
                    PointF pointF4 = aVar.n;
                    ThreadLocal threadLocal = g.a;
                    Path path = new Path();
                    path.moveTo(pointF.x, pointF.y);
                    if (pointF3 == null || pointF4 == null || (pointF3.length() == 0.0f && pointF4.length() == 0.0f)) {
                        path.lineTo(pointF2.x, pointF2.y);
                    } else {
                        float f = pointF3.x + pointF.x;
                        float f2 = pointF.y + pointF3.y;
                        float f3 = pointF2.x;
                        float f4 = f3 + pointF4.x;
                        float f5 = pointF2.y;
                        path.cubicTo(f, f2, f4, f5 + pointF4.y, f3, f5);
                    }
                    this.o = path;
                    return;
                }
            }
        }
        obj2 = null;
        obj = this.c;
        if (obj != null) {
        }
    }
}
